/*
 *  Copyright (C) 2010 Jesus Navalon i Pastor <jnavalon at redhermes dot net>
 * 
 *  This program is free software: you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation, either version 3 of the License, or
 *  (at your option) any later version.
 * 
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 * 
 *  You should have received a copy of the GNU General Public License
 *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

/*
 * Splash.java
 *
 * Created on 26/07/2010, 23:50:00
 */

package kuasar;

import kuasar.util.config.Configuration;

/**
 *
 * @author Jesus Navalon i Pastor <jnavalon at redhermes dot net>
 */
public class Splash extends javax.swing.JDialog {

    /** Creates new form Splash */
    public Splash() {
        initComponents();
        lbl_Logo.setIcon(kuasar.util.Image.resize(lbl_Logo.getIcon(), lbl_Logo.getWidth(), lbl_Logo.getHeight()));
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        lpn_Container = new javax.swing.JLayeredPane();
        lbl_Version = new javax.swing.JLabel();
        lbl_Logo = new javax.swing.JLabel();

        setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
        setUndecorated(true);

        lpn_Container.setBackground(new java.awt.Color(255, 255, 255));
        lpn_Container.setOpaque(true);

        lbl_Version.setForeground(new java.awt.Color(255, 255, 255));
        lbl_Version.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
        lbl_Version.setText("Version: " + Configuration.version);
        lbl_Version.setBounds(380, 270, 130, 15);
        lpn_Container.add(lbl_Version, javax.swing.JLayeredPane.DEFAULT_LAYER);

        lbl_Logo.setIcon(new javax.swing.ImageIcon(getClass().getResource("/icons/kuasar.png"))); // NOI18N
        lbl_Logo.setBounds(0, 0, 530, 300);
        lpn_Container.add(lbl_Logo, javax.swing.JLayeredPane.DEFAULT_LAYER);

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(lpn_Container, javax.swing.GroupLayout.DEFAULT_SIZE, 529, Short.MAX_VALUE)
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(lpn_Container, javax.swing.GroupLayout.DEFAULT_SIZE, 300, Short.MAX_VALUE)
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents



    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JLabel lbl_Logo;
    private javax.swing.JLabel lbl_Version;
    private javax.swing.JLayeredPane lpn_Container;
    // End of variables declaration//GEN-END:variables

}
